
import Head from 'next/head'

<Head>
  <script>
    {
      `(function() {
         var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?e60fb290e204e04c5cb6f79b0ac1e697";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
       })();`
    }
  </script>
</Head>

![LangChain](https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif)






WhatsApp聊天
 [#](#whatsapp-chat "Permalink to this headline")
=================================================================


此笔记本介绍了如何将WhatsApp聊天记录加载为可被导入到LangChain中的格式。 






```python
from langchain.document_loaders import WhatsAppChatLoader

```










```python
loader = WhatsAppChatLoader("example_data/whatsapp_chat.txt")

```










```python
loader.load()

```







